const { createStore, combineReducers, applyMiddleware } = redux = require('redux')

console.log(createStore(() => {}, {}, () => {}))

// const thunk = require('redux-thunk').default

// const count = require('./reducers/count')
// const list = require('./reducers/list')

// const { loadDataAsycn } =  require('./action-creator/loadData')

// console.log(loadDataAsycn)

// const m1 = require('./modules/m1')
// const m2 = require('./modules/m2')

// const reducer = combineReducers({
//   count,
//   list
// })

// const store = createStore(reducer, applyMiddleware(m1, m2))

// store.subscribe(() => {
//   console.log(store.getState())
// })

// store.dispatch(loadDataAsycn())

// store.dispatch()
// store.dispatch({
//   type: 'add',
//   num: 10
// })
// store.dispatch({
//   type: 'add',
//   num: 10
// })
// store.dispatch({
//   type: 'add',
//   num: 10
// })
